package com.ruoyi.quartz.util;

import com.ruoyi.quartz.domain.SysJob;
import org.quartz.JobKey;
import org.quartz.TriggerKey;

import java.util.HashMap;
import java.util.Map;

public class OrderCloseUtil {

    public static SysJob getOrderJob(String orderId) {
        SysJob job = new SysJob();
        job.setJobId(Long.valueOf(orderId));
        job.setJobGroup("ORDER_CLOSE");
        job.setJobName("订单关闭任务");
        String invokeTarget = "orderCloseJob.orderClose('" + orderId +"')";
        job.setInvokeTarget(invokeTarget);
        job.setMisfirePolicy("1");
        job.setConcurrent("0");
        job.setStatus("0");
        return job;
    }
}
